package com.bea.ftd.routing.feign;

import com.bea.ftd.common.model.MappingRequest;
import com.bea.ftd.common.model.MsgInRequest;
import com.bea.ftd.common.model.MappingResponse;
import com.bea.ftd.common.model.MsgOutResponse;
import com.bea.ftd.routing.fallback.MappingFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name="mapping" ,fallback = MappingFallback.class)
@Component
public interface MappingFeign {

    @RequestMapping("/checkMsgInData")
    public MappingResponse checkMsgInData(@RequestBody MappingRequest data);

    @RequestMapping("/transMsg")
    public MsgOutResponse transMsg(@RequestBody MsgInRequest request);

}
